package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.RecipientRecordaMapper;
import com.ruoyi.system.domain.RecipientRecorda;
import com.ruoyi.system.service.IRecipientRecordaService;

/**
 * 收件人Service业务层处理
 * 
 * @author xiaogu
 * @date 2024-10-23
 */
@Service
public class RecipientRecordaServiceImpl implements IRecipientRecordaService 
{
    @Autowired
    private RecipientRecordaMapper recipientRecordaMapper;

    /**
     * 查询收件人
     * 
     * @param id 收件人主键
     * @return 收件人
     */
    @Override
    public RecipientRecorda selectRecipientRecordaById(Long id)
    {
        return recipientRecordaMapper.selectRecipientRecordaById(id);
    }

    /**
     * 查询收件人列表
     * 
     * @param recipientRecorda 收件人
     * @return 收件人
     */
    @Override
    public List<RecipientRecorda> selectRecipientRecordaList(RecipientRecorda recipientRecorda)
    {
        return recipientRecordaMapper.selectRecipientRecordaList(recipientRecorda);
    }

    /**
     * 新增收件人
     * 
     * @param recipientRecorda 收件人
     * @return 结果
     */
    @Override
    public int insertRecipientRecorda(RecipientRecorda recipientRecorda)
    {
        return recipientRecordaMapper.insertRecipientRecorda(recipientRecorda);
    }

    /**
     * 修改收件人
     * 
     * @param recipientRecorda 收件人
     * @return 结果
     */
    @Override
    public int updateRecipientRecorda(RecipientRecorda recipientRecorda)
    {
        return recipientRecordaMapper.updateRecipientRecorda(recipientRecorda);
    }

    /**
     * 批量删除收件人
     * 
     * @param ids 需要删除的收件人主键
     * @return 结果
     */
    @Override
    public int deleteRecipientRecordaByIds(Long[] ids)
    {
        return recipientRecordaMapper.deleteRecipientRecordaByIds(ids);
    }

    /**
     * 删除收件人信息
     * 
     * @param id 收件人主键
     * @return 结果
     */
    @Override
    public int deleteRecipientRecordaById(Long id)
    {
        return recipientRecordaMapper.deleteRecipientRecordaById(id);
    }
}
